/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.diego.games.tetris.layer;

import java.io.IOException;
import javax.microedition.lcdui.Image;

/**
 *
 * @author diego
 */
public class Constant {

    public static int NO_COLOR = 1;
    public static int WHITE = 1;
    public static int RED = 2;
    public static int GREEN = 3;
    public static int BLUE = 4;
    public static int YELLOW = 5;
    public static int GREY = 6;
    public static int BROWN = 7;
    public static int BLACK = 8;
    private static final String VIEW = "/block.png";
    private static Image IMAGE;
    public static int WIDTH = 16;
    public static int HEIGHT = 16;

    public static Image getImage() throws IOException {
        if (IMAGE == null) {
            // write pre-init user code here
            IMAGE = Image.createImage(VIEW);
        }
        // write post-init user code here
        return IMAGE;
    }
}
